package com.game.logic.cultivate;

import com.coment.po.roles.Roles;
import com.game.dao.user.roles.RolesDao;
import com.game.logic.roles.RolesCultivateLogic;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/// 战斗力服务
@Slf4j
@Service
public class FightingCapacityService {
    @Resource
    private RolesDao rolesDao;

    /// 获取角色战斗力
    public Double getRolesFightingCapacity(String rolesId) {
        Roles roles = rolesDao.findByIdMust(rolesId);
        return RolesCultivateLogic.tryCountFightingCapacity(roles);
    }
}
